﻿using System.Xml.Serialization;
using UnityEngine;

public class Element : IElement {
	// === Public =====================================================================================================
	#region IElement
	[XmlAttribute("ElementType")]
	public ElementType ElementType { get; set; }
	[XmlIgnore]
	public Vector3 Position { get; set; }
	#endregion
	[XmlAttribute("Position")]
	public string PositionForXml {
		get { return Position.ToString(); }
		private set { Position = Tools.Convert.StringToVector3(value); }
	}
	[XmlAttribute("TexturePath")]
	public string TexturePath { get; set; }
}
